---------------------------------------------
-- Crimson Howl
---------------------------------------------
require("scripts/globals/monstertpmoves");
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/utils");
require("scripts/globals/msg");
---------------------------------------------

function onAbilityCheck(player, target, ability)
    return 0,0;
end;

function onPetAbility(target, pet, skill, summoner)
    local bonusTime = utils.clamp(summoner:getSkillLevel(dsp.skill.SUMMONING_MAGIC) - 300, 0, 200);
    local duration = 60 + bonusTime;

    target:addStatusEffect(dsp.effect.WARCRY,9,0,duration);
    skill:setMsg(dsp.msg.basic.SKILL_GAIN_EFFECT);
    return dsp.effect.WARCRY;
end